package plenprojects.guiclient.frames;

public class MailFrame extends javax.swing.JFrame {
    
    public MailFrame() {
        
        initComponents();
    }
                         
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        MailList = new javax.swing.JList();
        ShowButton = new javax.swing.JButton();
        NewMessageButton = new javax.swing.JButton();
        RemoveButton = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Chat mail");
        setResizable(false);

        MailList.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane1.setViewportView(MailList);

        ShowButton.setText("Show");
        ShowButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ShowButtonActionPerformed(evt);
            }
        });

        NewMessageButton.setText("Write a new message");
        NewMessageButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                NewMessageButtonActionPerformed(evt);
            }
        });

        RemoveButton.setText("Remove");
        RemoveButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                RemoveButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(ShowButton)
                        .addGap(18, 18, 18)
                        .addComponent(RemoveButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 97, Short.MAX_VALUE)
                        .addComponent(NewMessageButton)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(ShowButton)
                    .addComponent(NewMessageButton)
                    .addComponent(RemoveButton))
                .addContainerGap())
        );

        pack();
    }                      

    private void ShowButtonActionPerformed(java.awt.event.ActionEvent evt) {                                           
        
        //TODO
        
    }                                          

    private void RemoveButtonActionPerformed(java.awt.event.ActionEvent evt) {                                             
        
        //TODO
        
    }                                            

    private void NewMessageButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                 
        
        //TODO
        
    }                                                
                    
    private javax.swing.JList MailList;
    private javax.swing.JButton NewMessageButton;
    private javax.swing.JButton RemoveButton;
    private javax.swing.JButton ShowButton;
    private javax.swing.JScrollPane jScrollPane1;                
}
